<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Data Guru</title>
    <link href="<?php echo base_url(); ?>css/bootstrap.min.css" rel="stylesheet" media="screen"/>
    <link href="<?php echo base_url(); ?>css/datepicker.css" rel="stylesheet" media="screen"/>
  </head>
  <body>
    <div id="form_input" title="Edit Data">
      <table>
        <?php echo validation_errors(); ?>
        <?php echo form_open('pegawai2/submit'); ?>
        <tr >
            <td> <?php echo form_label('Job Order : '); ?></td><?php echo form_hidden('id',$id_order); ?>
            <td> <?php echo form_input('job_order',$job_order,'id="job_order" readonly'); ?></td>
        </tr>
        <tr>
            <td> <?php echo form_label('No SJ : ');?> </td>
            <td> <?php echo form_input('no_sj', $no_sj,'id="no_sj" readonly'); ?></td>
        </tr>
        <tr >
                    <td> <?php echo form_label('Consgnee : '); ?></td>
                    <td> <?php echo form_input('consgnee', $consgnee, 'id="consgnee" readonly'); ?></td>
                </tr>
                <tr>
                    <td> <?php echo form_label('Origin : '); ?> </td>
                    <td> <?php echo form_input('origin', $origin, 'id="origin" readonly'); ?></td>
                </tr>
                <tr>
                    <td> <?php echo form_label('Shipper : '); ?> </td>
                    <td> <?php echo form_input('shipper', $shipper, 'id="shipper" readonly'); ?></td>
                </tr>
                <tr >
                    <td> <?php echo form_label('Via : '); ?></td>
                    <td> <select name="via" disabled>
                            <?php if($via == 'SF'){
                             echo "<option value='SF' selected>SF</option>
                            <option value='AF'>AF</option>";
                            }
                            else {
                             echo "<option value='SF'>SF</option>
                            <option value='AF' selected>AF</option>";   
                            }?>
                            
                        </select>
                    </td>
                </tr>
                <tr>
                    <td> <?php echo form_label('Agent : '); ?> </td>
                    <td> <select name="agent" disabled>
                            <option value="T" <?php if($agent == 'T'){ echo "selected";}?> >T</option>
                            <option value="K" <?php if($agent == 'K'){ echo "selected";}?> >K</option>
                            <option value="U" <?php if($agent == 'U'){ echo "selected";}?> >U</option>
                            <option value="M" <?php if($agent == 'M'){ echo "selected";}?> >M</option>
                        </select></td>
                </tr>
                <tr>
                    <td> <?php echo form_label('Ctn : '); ?> </td>
                    <td> <?php echo form_input('ctn', $ctn, 'id="ctn" readonly'); ?></td>
                </tr>
                <tr>
                    <td> <?php echo form_label('Kg : '); ?> </td>
                    <td> <?php echo form_input('kg', $kg, 'id="kg" readonly'); ?></td>
                </tr>
                <tr>
                    <td> <?php echo form_label('M3 : '); ?> </td>
                    <td> <?php echo form_input('m3', $m3, 'id="m3" readonly'); ?></td>
                </tr>
                <tr>
                    <td> <?php echo form_label('Description : '); ?> </td>
                    <td> <?php echo form_textarea('description', $description, 'id="description" readonly'); ?></td>
                </tr>
                <tr>
                    <td> <?php echo form_label('Penerimaan : '); ?> </td>
                    <td> <?php echo form_input('penerimaan', $penerimaan, 'id="penerimaan" readonly'); ?></td>
                </tr>
                <tr>
                    <td> <?php echo form_label('Cost : '); ?> </td>
                    <td> <?php echo form_input('cost', $cost, 'id="cost" readonly'); ?></td>
                </tr>
                <tr>
                    <td> <?php echo form_label('Profit : '); ?> </td>
                    <td> <?php echo form_input('profit', $profit, 'id="profit" readonly'); ?></td>
                </tr>
                <tr>
                    <td> <?php echo form_label('Remarks : '); ?> </td>
                    <td> <?php echo form_textarea('remarks', $remarks, 'id="remarks" readonly'); ?></td>
                </tr>
                <tr>
                    <td> <?php echo form_label('Etd Sin : '); ?></td>
                    <td>
                            <input class="span2" type="text" name="etd_sin" value="<?php echo $etd_sin; ?>" readonly/>
                    </td>
                </tr>
                <tr>
                    <td> <?php echo form_label('Eta Jkt : '); ?></td>
                    <td>
                            <input class="span2" type="text" name="eta_jkt" value="<?php echo $eta_jkt; ?>" readonly/>
                    </td>
                </tr>
                <tr>
                    <td> <?php echo form_label('Delivery : '); ?></td>
                    <td>
                            <input class="span2" type="text" name="delivery" value="<?php echo $delivery; ?>" readonly/>
                    </td>
                </tr>
                <tr>
                    <td> <?php echo form_label('Jatuh Tempo : '); ?></td>
                    <td>
                        <div class="input-prepend date" id="dp3" data-date="<?php echo date('Y-m-d'); ?>" data-date-format="yyyy-mm-dd">
                            <span class="add-on"><i class="icon-calendar"></i></span>	
                            <input class="span2" type="text" name="jatuhtempo" value="<?php echo $jatuh_tempo; ?>"/>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td><?php echo form_label('Keterangan : '); ?></td>
                    <td><?php echo form_textarea('keterangan', $keterangan); ?></td>
                </tr>
                
        <tr>
                <td colspan="2"><?php echo form_submit('submit','Save','class="btn btn-primary"')?>
        </tr>
      </table>
      </div>
      <script type="text/javascript" src="<?php echo base_url(); ?>js/jquery-1.8.3.min.js"></script>
      <script type="text/javascript" src="<?php echo base_url('js/bootstrap-datepicker.js'); ?>"></script>
      <script type="text/javascript">
          $(document).ready(function(){
              $('#dp3').datepicker('place');
          });
      </script>
  </body>
</html>